<?php
namespace app\modules\yar\controllers;

use yii\web\Controller;

class UserClientController extends Controller
{

    public $client;

    public  function actionConnect()
    {
        $this->client = new \Yar_client('http://yii.king866.com/yar/user-server/index');
    }

    public function actionGetTest()
    {
        $this->actionConnect();
        var_dump($this->client->actionTest());
    }




}
